#include "mymainwindow.h"
#include "ui_mymainwindow.h"
#include<QMenuBar>
#include<QAction>
myMainWindow::myMainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::myMainWindow)
{
    resize(600,800);
    QMenuBar *bar=menuBar();
    setMenuBar(bar);
    QMenu*filemenu= bar->addMenu("文件");
    QMenu *editMenu=bar->addMenu("编辑");
    filemenu->move(100,100);
    filemenu->resize(200,200);
    filemenu->show();
    ui->setupUi(this);
}

myMainWindow::~myMainWindow()
{
    delete ui;
}

